package com.wjv.example.springboot.base.event;

import com.wjv.example.springboot.base.entity.UserInfoEntity;
import org.springframework.context.ApplicationEvent;

/**
 * <p>Title: 事件定义 </p>
 *
 * @author wjv
 * @date 2021/6/16 11:11
 */
public class SentMqEvent extends ApplicationEvent {
    /**
     * Create a new {@code ApplicationEvent}.
     *
     * @param source the object on which the event initially occurred or with
     *               which the event is associated (never {@code null})
     */
    public SentMqEvent(Object source, UserInfoEntity userInfoEntity) {
        super(source);
        this.userInfoEntity = userInfoEntity;
    }

    private UserInfoEntity userInfoEntity;

    public UserInfoEntity getUserInfoEntity() {
        return userInfoEntity;
    }

    public void setUserInfoEntity(UserInfoEntity userInfoEntity) {
        this.userInfoEntity = userInfoEntity;
    }
}
